package cn.ly.jvm.loader.diffloader;

public class HelloTest implements Hello{
	
	private Hello h;
	
	public void sayHello(){
		System.out.println("I am HelloTest, my classloader is " + this.getClass().getClassLoader());
		/*System.out.println("Hello ...");
		h.sayHello();*/
	}
	
	public void setHello(Hello h){
		this.h = (Hello)h;
	}
}

class HelloTest2 implements Hello{
	
	private Hello h;
	
	public void sayHello(){
		System.out.println("I am HelloTest2, my classloader is " + this.getClass().getClassLoader());
	}
	
	public void setHello(Hello h){
		this.h = (Hello)h;
	}
	
}

interface Hello{
	void sayHello();
}
